﻿using QzgfFrame.System.MenuManger.Models;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace QzgfFrame.Mvc3.Tests
{
    
    
    /// <summary>
    ///这是 SystemMenuTest 的测试类，旨在
    ///包含所有 SystemMenuTest 单元测试
    ///</summary>
    [TestClass()]
    public class SystemMenuTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///获取或设置测试上下文，上下文提供
        ///有关当前测试运行及其功能的信息。
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region 附加测试特性
        // 
        //编写测试时，还可使用以下特性:
        //
        //使用 ClassInitialize 在运行类中的第一个测试前先运行代码
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //使用 ClassCleanup 在运行完类中的所有测试后再运行代码
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //使用 TestInitialize 在运行每个测试前先运行代码
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //使用 TestCleanup 在运行完每个测试后运行代码
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///SystemMenu 构造函数 的测试
        ///</summary>
        [TestMethod()]
        public void SystemMenuConstructorTest()
        {
            string id = string.Empty; // TODO: 初始化为适当的值
            string name = string.Empty; // TODO: 初始化为适当的值
            string pic = string.Empty; // TODO: 初始化为适当的值
            string url = string.Empty; // TODO: 初始化为适当的值
            string order = string.Empty; // TODO: 初始化为适当的值
            string father = string.Empty; // TODO: 初始化为适当的值
            string ismenu = string.Empty; // TODO: 初始化为适当的值
            string permissionsflag = string.Empty;
            SystemMenu target = new SystemMenu(id, name, pic, url, order, father, ismenu, permissionsflag);
            Assert.Inconclusive("TODO: 实现用来验证目标的代码");
        }

        /// <summary>
        ///SystemMenu 构造函数 的测试
        ///</summary>
        [TestMethod()]
        public void SystemMenuConstructorTest1()
        {
            SystemMenu target = new SystemMenu();
            Assert.Inconclusive("TODO: 实现用来验证目标的代码");
        }

        /// <summary>
        ///MarkAsDeleted 的测试
        ///</summary>
        [TestMethod()]
        public void MarkAsDeletedTest()
        {
            SystemMenu target = new SystemMenu(); // TODO: 初始化为适当的值
            target.MarkAsDeleted();
            Assert.Inconclusive("无法验证不返回值的方法。");
        }

        /// <summary>
        ///Father 的测试
        ///</summary>
        [TestMethod()]
        public void FatherTest()
        {
            SystemMenu target = new SystemMenu(); // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            target.Father = expected;
            actual = target.Father;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///FatherName 的测试
        ///</summary>
        [TestMethod()]
        public void FatherNameTest()
        {
            SystemMenu target = new SystemMenu(); // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            target.FatherName = expected;
            actual = target.FatherName;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///Id 的测试
        ///</summary>
        [TestMethod()]
        public void IdTest()
        {
            SystemMenu target = new SystemMenu(); // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            target.Id = expected;
            actual = target.Id;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///IsChanged 的测试
        ///</summary>
        [TestMethod()]
        public void IsChangedTest()
        {
            SystemMenu target = new SystemMenu(); // TODO: 初始化为适当的值
            bool actual;
            actual = target.IsChanged;
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///IsDeleted 的测试
        ///</summary>
        [TestMethod()]
        public void IsDeletedTest()
        {
            SystemMenu target = new SystemMenu(); // TODO: 初始化为适当的值
            bool actual;
            actual = target.IsDeleted;
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///Ismenu 的测试
        ///</summary>
        [TestMethod()]
        public void IsmenuTest()
        {
            SystemMenu target = new SystemMenu(); // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            target.Ismenu = expected;
            actual = target.Ismenu;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///IsmenuName 的测试
        ///</summary>
        [TestMethod()]
        public void IsmenuNameTest()
        {
            SystemMenu target = new SystemMenu(); // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            target.IsmenuName = expected;
            actual = target.IsmenuName;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///Name 的测试
        ///</summary>
        [TestMethod()]
        public void NameTest()
        {
            SystemMenu target = new SystemMenu(); // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            target.Name = expected;
            actual = target.Name;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///Orderno 的测试
        ///</summary>
        [TestMethod()]
        public void OrdernoTest()
        {
            SystemMenu target = new SystemMenu(); // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            target.Orderno = expected;
            actual = target.Orderno;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///Pic 的测试
        ///</summary>
        [TestMethod()]
        public void PicTest()
        {
            SystemMenu target = new SystemMenu(); // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            target.Pic = expected;
            actual = target.Pic;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }

        /// <summary>
        ///Url 的测试
        ///</summary>
        [TestMethod()]
        public void UrlTest()
        {
            SystemMenu target = new SystemMenu(); // TODO: 初始化为适当的值
            string expected = string.Empty; // TODO: 初始化为适当的值
            string actual;
            target.Url = expected;
            actual = target.Url;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
    }
}
